package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {


    int insertNursingPlan(NursingPlan nursingPlan);

    int updateNursingPlan(NursingPlan nursingPlan);

    int deleteNursingPlanById(int id);

    NursingPlanVo selectNursingPlanById(int id);

    List<NursingPlanVo> selectAllNursingPlans();


    Page<NursingPlanVo> selectByPage(String name, Integer status);

    void statusControl(Integer id, Integer status);

}